package com.FangFaYingYong.A01FangFaYingYong;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;

public class A04_Function {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "张三,13", "李四,14", "王五,15");

        List<C04_Student> collect = list.stream().map(C04_Student::new).collect(Collectors.toList());
        System.out.println(collect);
    }
}
